package cn.enilu.flash.bean.entity.shop;

import cn.enilu.flash.bean.entity.BaseEntity;
import com.fasterxml.jackson.annotation.JsonManagedReference;
import lombok.Data;
import org.hibernate.annotations.Table;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Transient;
import java.util.List;


@Data
@Entity(name="t_shop_label")
@Table(appliesTo = "t_shop_label",comment = "标签管理")
public class Label extends BaseEntity {
    @Column(columnDefinition = "VARCHAR(32) COMMENT '标签名称'")
    private String name;
    @Column(columnDefinition = "VARCHAR(2) COMMENT '是否首页推荐 1:推荐  0：不推荐'")
    private String recommend;
    @Transient
    @JsonManagedReference
    private List<LabelGoods> labelGoodsList;
}
